
var storeNameTrad = new Ext.data.JsonStore({
        root: 'articles',
        fields: [
            'id', 'text'
        ],
        proxy: new Ext.data.HttpProxy({
            url: basePath+'/../traditionalServlet',
            doClass:'query',
            preName:'tradName'
        }),
        baseParams: {doClass:'query'}
    });
    
    // create the Grid
    var gridNameTrad = new Ext.grid.GridPanel({
        store: storeNameTrad,
        shadow:true,
        autoScroll: true,
        border:false,
        tbar: [
            '&nbsp;&nbsp; ', ' ',
            new Ext.app.SearchField({
                store: storeNameTrad,
                paramName:'tradName',
                value:tradName
            })
        ],
        columns: [
        	new Ext.grid.CheckboxSelectionModel(),
            {id:'AA',header: "序号", width: 50,sortable: true, dataIndex: 'id',hidden:true},
            {header: "中药名称", width: 180, sortable: true, dataIndex: 'text'}
        ],
         iconCls:'icon-grid',
         width:230,
         height:500,
         sm: new Ext.grid.CheckboxSelectionModel({singleSelect: false})
    });
   
    gridNameTrad.on('rowclick', function(g, rowIdx, e) {
   			// g.selectRow(rowIdx,false);
   			selectTraRecord(g.getSelectionModel().getSelections());
		//updataCaContent({doClass:"content", chapterId:ds.getAt(rowIdx).data.id})
	});
    gridNameTrad.render('traditionalName_g');
    storeNameTrad.load({params:{doClass:'query',tradName:tradName}});
    storeNameTrad.setDefaultSort('id', 'desc');
  
